package juc.day02;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Block {
    public static void main(String[] args) {
        ExecutorService threadPool1 = Executors.newFixedThreadPool(3);
        for(int i=0;i<30;i++){
            threadPool1.execute(()->{
                System.out.println(Thread.currentThread().getName()+"号业务员办理业务");
            });
        }
    }
}
